package com.ykdl.member.kid.beans;

import java.io.Serializable;

import org.json.JSONObject;

import net.wxxr.http.interfaces.IJsonParser;
import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

public class UserActorBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2658333414594542022L;
	private int actor_id ;
	private int actor_type ;
	private FileMetas avatar_file_meta ;
	private BabyProfileBean baby_profile ;
	private String created_time ;
	private String display_name ;
	private int gender ;
	private int level ;
	private ProfileBean profile ;
	private String total_gold ;
	private int total_xp ;
	private int user_id ;
	private int doctor_id ;
	private int relation;
	private FollowerActor follower_actor;
	private FollowerActor friend_actor;
	private boolean is_friend;
    private boolean is_new;
    private boolean is_follower;
    private FileBean avatar ;
	public FileBean getAvatar() {
		return avatar;
	}
	public FollowerActor getFriend_actor() {
		return friend_actor;
	}
	public void setFriend_actor(FollowerActor friend_actor) {
		this.friend_actor = friend_actor;
	}
	
	public FollowerActor getFollower_actor() {
		return follower_actor;
	}
	public void setFollower_actor(FollowerActor follower) {
		this.follower_actor = follower;
	}
	public int getRelation() {
		return relation;
	}
	public void setRelation(int relation) {
		this.relation = relation;
	}
	public int getDoctor_id() {
		return doctor_id;
	}
	public int getActor_id() {
		return actor_id;
	}
	public void setActor_id(int actor_id) {
		this.actor_id = actor_id;
	}
	public int getActor_type() {
		return actor_type;
	}
	public void setActor_type(int actor_type) {
		this.actor_type = actor_type;
	}
	public FileMetas getAvatar_file_meta() {
		return avatar_file_meta;
	}
	public void setAvatar_file_meta(FileMetas avatar_file_meta) {
		this.avatar_file_meta = avatar_file_meta;
	}
	public BabyProfileBean getBaby_profile() {
		return baby_profile;
	}
	public void setBaby_profile(BabyProfileBean baby_profile) {
		this.baby_profile = baby_profile;
	}
	public String getCreated_time() {
		return created_time;
	}
	public void setCreated_time(String created_time) {
		this.created_time = created_time;
	}
	public String getDisplay_name() {
		return display_name;
	}
	public void setDisplay_name(String display_name) {
		this.display_name = display_name;
	}
	public int getGender() {
		return gender;
	}
	public void setGender(int gender) {
		this.gender = gender;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public ProfileBean getProfile() {
		return profile;
	}
	public void setProfile(ProfileBean profile) {
		this.profile = profile;
	}
	public String getTotal_gold() {
		return total_gold;
	}
	public void setTotal_gold(String total_gold) {
		this.total_gold = total_gold;
	}
	public int getTotal_xp() {
		return total_xp;
	}
	public void setTotal_xp(int total_xp) {
		this.total_xp = total_xp;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	
	public boolean isfriend() {
		return is_friend;
	}
	public void setIs_friend(boolean is_friend) {
		this.is_friend = is_friend;
	}
	public boolean isnew() {
		return is_new;
	}
	public void setIs_new(boolean is_new) {
		this.is_new = is_new;
	}
	public boolean is_follower() {
		return is_follower;
	}
	public void setIs_follower(boolean is_follower) {
		this.is_follower = is_follower;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		if(!TextUtils.isEmpty(json)){
			GsonBuilder b = new GsonBuilder();
			Gson gson = b.create();
			return gson.fromJson(json, UserActorBean.class);
		}
		return null;
	}

}
